<script setup>
  import { ViewNode } from './js/xmind';
  // import {SVG} from '@svgdotjs/svg.js'
  let view = null
  document.addEventListener('DOMContentLoaded', function() {
    // 你的ViewNode代码放在这里
    view = new ViewNode("#app")
    view.createRect("Hello , World! ! !")
    view.createRect("你好")
    view.createRect("傻逼")
  });
  const handleClick = function(){
    view.createRect("无")
  }
</script>

<template>
  <div class="app"></div>
  <button @click="handleClick" class="btn">添加</button>
</template>

<style scoped>
  .btn{
    position: fixed;
  }
  /* div .edit{
    width: 300px;
    height: 140px;
    background-color: red;
  } */
</style>
